import { createRouter, RouteRecordRaw, createWebHashHistory } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: () => import('../views/main/index.vue')
  },
  {
    path: '/start',
    component: () => import('../views/start/index.vue')
  },
  {
    path: '/createNew',
    component: () => import('../views/create/project/new/index.vue')
  },
  {
    path: '/main',
    component: () => import('../views/main/index.vue')
  },
  {
    path: '/create',
    component: () => import('../views/create/index.vue'),
    children: [
      {
        path: '/create/project',
        component: () => import('../views/create/project/index.vue')
      },
      {
        path: '/create/setting',
        component: () => import('../views/create/setting/index.vue')
      }
    ]
  }
]

const router = createRouter({
  routes,
  history: createWebHashHistory()
})
export default router
